--- 获取key
local key = KEYS[1]
local xkey = KEYS[2]
local value = KEYS[3]
-- 库存变量
local count = false
-- tonumber这个函数会尝试将它的参数转换为数字
count = tonumber(redis.call("HSET",key,xkey,value))
if count == false then
   return count
elseif count ==true then
   return count
end

